package com.mapforge.listener;

import com.mapforge.map.TileLayer;

public class TileLayerCreationEvent extends BasicEvent {
	private TileLayer layer;

	public TileLayerCreationEvent(Object src, TileLayer createdLayer) {
		super(src);
		if (createdLayer == null)
			throw new IllegalArgumentException(
					"Layer in tile layer creation event cannot be null.");
		this.layer = createdLayer;
	}

	public TileLayer getCreatedTileLayer() {
		return layer;
	}
}
